package adapter;

import listener.MessageListener;

import java.awt.*;

/***
 * Author: Mr.Zhao, Time: 2018/5/6/17:12
 * Description: 抽象类，并不实现MessageListener中的所有接口，
 * 只是为了方便其他controller，使其不必重写MessageListener中的所有方法，
 * 必须被controller继承
 */
public abstract class MessageAdapter implements MessageListener {
    @Override
    public void listPlayers(String msg) {

    }

    @Override
    public void receiveInvitation(String msg) {

    }

    @Override
    public void gameStart(Color myColor) {

    }

    @Override
    public void refusedInvitation() {

    }

    @Override
    public void opponentOffline() {

    }

    @Override
    public void opponentMoved(int x1, int y1, int x2, int y2) {

    }

    @Override
    public void receivedChatMsg(String time, String content) {

    }

    @Override
    public void myInfo(String myInfo) {

    }
}
